package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.pojo.Type;
import com.zhentao.pojo.TypeSon;
import com.zhentao.service.TypeSonService;
import com.zhentao.mapper.TypeSonMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author HP
* @description 针对表【type_son】的数据库操作Service实现
* @createDate 2025-03-20 15:23:17
*/
@Service
public class TypeSonServiceImpl extends ServiceImpl<TypeSonMapper, TypeSon>
    implements TypeSonService{

    @Autowired
    private TypeSonMapper typeSonMapper;

    @Override
    public List<TypeSon> getTypeSonById(Integer id) {
        QueryWrapper<TypeSon> wrapper = new QueryWrapper<>();
        wrapper.eq("tid", id);
        return typeSonMapper.selectList(wrapper);
    }
}




